//*****************************************************************************
//
// hbridge.h - Prototypes for the H-bridge driver.
//
// Copyright (c) 2008-2012 Texas Instruments Incorporated.  All rights reserved.
// Software License Agreement
// 
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws. You may not combine this software with "viral" open-source
// software in order to form a larger program.
// 
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
// 
// This is part of revision 8555 of the RDK-BDC24 Firmware Package.
//
//*****************************************************************************

#ifndef __HBRIDGE_H__
#define __HBRIDGE_H__

//*****************************************************************************
//
// The settings for the brake/coast configuration.
//
//*****************************************************************************
#define HBRIDGE_JUMPER          0
#define HBRIDGE_BRAKE           1
#define HBRIDGE_COAST           2

//*****************************************************************************
//
// Function prototypes.
//
//*****************************************************************************
extern void HBridgeGateDriverReset(void);
extern void HBridgeInit(void);
extern void HBridgeVoltageMaxSet(long lVoltage);
extern long HBridgeVoltageMaxGet(void);
extern void HBridgeVoltageSet(long lVoltage);
extern void HBridgeBrakeCoastSet(unsigned long ulState);
extern unsigned long HBridgeBrakeCoastGet(void);
extern void HBridgeTick(void);
extern void HBridgeFirmwareUpdate(void);

#endif // __HBRIDGE_H__
